package com.nothingboard.module.member.model;

public class MemberDto {
	
	/** 회원번호 */
	private int usrNo;
	/** 회원명 */
	private String usrName;
	/** 예명 */
	private String nickName;
	/** 권한번호 */
	private String grantNo;
	/** 생년월일 */
	private String birthDt;
	/** 이메일 */
	private String email;
	/** 전화번호 */
	private String phone;
	/** 등록일 */
	private String registeredDt;
	/** 탈퇴일 */
	private String withdrawDt;
	
	
	
	
	/** 로그인ID */
	private String usrId;
	/** 비밀번호 */
	private String usrPwd;
	/** 사이트번호 */
	private int siteNo;
	
	
	
	/** 그룹번호 */
	private String groupNo;

	
	
	
	public int getUsrNo() {
		return usrNo;
	}

	public void setUsrNo(int usrNo) {
		this.usrNo = usrNo;
	}

	public String getGroupNo() {
		return groupNo;
	}

	public void setGroupNo(String groupNo) {
		this.groupNo = groupNo;
	}

	public String getGrantNo() {
		return grantNo;
	}

	public void setGrantNo(String grantNo) {
		this.grantNo = grantNo;
	}

	public String getUsrId() {
		return usrId;
	}

	public void setUsrId(String usrId) {
		this.usrId = usrId;
	}

	public String getUsrPwd() {
		return usrPwd;
	}

	public void setUsrPwd(String usrPwd) {
		this.usrPwd = usrPwd;
	}

	public String getUsrName() {
		return usrName;
	}

	public void setUsrName(String usrName) {
		this.usrName = usrName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getSiteNo() {
		return siteNo;
	}

	public void setSiteNo(int siteNo) {
		this.siteNo = siteNo;
	}

	public String getBirthDt() {
		return birthDt;
	}

	public void setBirthDt(String birthDt) {
		this.birthDt = birthDt;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRegisteredDt() {
		return registeredDt;
	}

	public void setRegisteredDt(String registeredDt) {
		this.registeredDt = registeredDt;
	}

	public String getWithdrawDt() {
		return withdrawDt;
	}

	public void setWithdrawDt(String withdrawDt) {
		this.withdrawDt = withdrawDt;
	}
	
	/**
	 * 관리자 여부 확인 반환 
	 * @return
	 */
	public boolean isAdminGrant(){
		if(this.grantNo != null && this.grantNo.startsWith("1")){
			return true;
		}else{
			return false;
		}
	}
	
	

}
